<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorshipHymnCollectionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worship_hymn_collection', function (Blueprint $table) {
            $table->integer('hymn_id')->index('admin_role_permission_role_id_index')->comment('赞美诗ID');
            $table->integer('collection_id')->index('admin_role_permission_permission_id_index')->comment('诗歌集ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worship_hymn_collection');
    }
}
